<h1>Add Tasks</h1>

<h3>Project <%= @project.project_reference %></h3>

<% form_for(@project) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :task %><br />
    <select name="project_task[task]">
	<% @tasks.each do |task| %>
	       <option value="<%= task.id %>">
		<%= task.name %>
	       </option>
	<% end %>
	</select>
  </p>
    <p>
    <%= f.submit 'Add' %>
  </p>
<% end %>

<%= link_to 'Back', projects_path %>